package com.nicy.dream.form;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @description:
 * @projectName:dream
 * @see:com.nicy.dream.form
 * @author:NicyYe
 * @createTime:2021/1/27 13:52
 * @version:1.0
 */
@Data
@ExcelTarget("courseEntity")
public class CourseEntity implements Serializable {
    /** 主键 */
    private String id;
    /** 课程名称 */
    @Excel(name = "课程名称", orderNum = "1", width = 25,needMerge = true)
    private String name;
    /** 老师主键 */
    //@ExcelEntity(id = "absent")
    //private TeacherEntity mathTeacher;
    @Excel(name = "主讲老师",needMerge = true,width = 40)
    private String mathTeacher;

    @ExcelCollection(name = "学生", orderNum = "4")
    private List<StudentEntity> students;
}
